package com.cheer.dto;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * 积分明细
 * 
 * @author cheer
 */
@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class OaIntegralDTO implements Serializable {

	private static final long serialVersionUID = 1L;

	private Integer type;
	/**
	 * 
	 */
	private Integer itemsId;
	/**
	 * 
	 */
	private Integer integral;
	/**
	 * 
	 */
	private Date addTime;


	@Override
	public boolean equals(Object o) {
		if (this == o) return true;
		if (o == null || getClass() != o.getClass()) return false;
		OaIntegralDTO that = (OaIntegralDTO) o;
		return Objects.equals(type, that.type) &&
				Objects.equals(itemsId, that.itemsId) &&
				Objects.equals(integral, that.integral);
	}

	@Override
	public int hashCode() {
		return Objects.hash(type, itemsId, integral);
	}

}
